home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
E-Education
/
(c)ed2.d64
/
alpha 1 a
(
.txt
)
next >
Wrap
Commodore BASIC
|
2007-02-04
|
8KB
|
260 lines
1 GOTO910
2 PRINT"x[169][141][169][141]X` [234][255][169][255][133][145]L4[234]x[169]1[141][169][234][141]X`
3 [153]"xSTEPGINPUTSTOPSTEPINPUTONX` (null)(null)STEP(null)INPUTLISTLX(null)xSTEPUINPUTSTOPSTEP(null)INPUTONX`
4 PRINT"xhhh[170]h[168]hhhhhhh[152]H[138]HX`
5 [153]"hhhhhhh`
6 PRINT"[160][255][200][132][251][169][216][133][252] [241][183][138][162][160][255][200][145][251][136][208][251][230][252][202][208][246]`
7 [153]"NEWCLOSE(null)LEFT$>(null)ON(null)LET(null)(null)(null)(null)(null)(null)MID$(null)(null)`
35 IFUW=0THENSYSUU,15
40 POKEUC,0:POKEUN,0:UR$="":UI$="":IFUL=0THENUL=39
45 GETUI$:IFUI$=""THEN45
50 UA=ASC(UI$):UR=LEN(UR$):IFUA=13ANDUR>0THENPOKEUC,1:PRINT" [157]";:GOTO70
55 IFUA=20THENON-(UR=0)GOTO45:UR$=LEFT$(UR$,UR-1):PRINT"[157] [157][157]";:GOTO45
60 IFUR=ULTHEN45
65 GOSUB95:UR$=UR$+UI$:PRINTUI$;:GOTO45
70 IFUR$=UX$THENPRINT"[157] ";:GOTO145
75 FORUI=URTO1STEP-1:IFMID$(UR$,UI,1)=" "THENNEXT
80 UR$=LEFT$(UR$,UI):PRINT:RETURN
95 IFLEN(US$)=0THEN110
100 FORUI=1TOLEN(US$):IFUI$<>MID$(US$,UI,1)THENNEXT:UI$=""
105 RETURN
110 IFUA=46THENRETURN
115 IFUA=32ANDUR<>0THENRETURN
120 IFUA>47ANDUA<58THENRETURN
125 IFUA>64ANDUA<91THENRETURN
130 IFUA<193ORUA>218THENUI$="":RETURN
135 IFPEEK(UT)=UU%THENUI$=CHR$(UA-128)
140 RETURN
145 GOSUB170:POKE251,0:POKE252,US/256:POKE253,0:POKE254,UF:SYSUV
150 UZ=1:UV%=PEEK(UT):GOTO300
155 UZ=0:US$=UJ$:UG$=UK$:UT$=UL$:UP=UJ:UL=UK:PRINT"[147]";:IFUW=0THENPOKEUY,6:POKEUX,14
160 POKEUT,UV%:POKE251,0:POKE252,UF:POKE253,0:POKE254,US/256:SYSUV:IFUW=0THENSYSUU,15
165 POKEU1,U1%:POKEU2,U2%:POKEU3,U3%-1:POKEU4,U4%:GOTO35
170 U1%=PEEK(U1):U2%=PEEK(U2):U3%=PEEK(U3):U4%=PEEK(U4)
175 UJ$=US$:UK$=UG$:UL$=UT$:UJ=UP:UK=UL:RETURN
300 REM DERIVED FROM COMMODORE ONTARIO EDUCATIONAL SOFTWARE PROJECT 1983
310 REM PROJECT DIRECTOR: FRANK WINTER
320 REM PROGRAM MAME: ALPHA
330 REM WRITTEN BY JAN SAWCZAK
340 REM REVISED BY DOUG TURNER
350 REM UPDATED BY BILL CUMBERLAND 90
400 PRINT"[147]":POKEUT,UL%:POKEUY,13:POKEUX,13:POKE646,0
405 PRINT" [201][206][211][212][210][213][195][212][201][207][206][211] [146]"
407 PRINT" * [212]O BE READ TO THE STUDENT.
410 [153]" RIGHT$N THIS PROGRAM YOU WILL BE ASKED TO"
415 [153]" ALPHABETIZE A LIST OF WORDS."
420 [153]" (null)HESE WORDS WILL APPEAR IN A MIXED UP ORDER."
425 [153]" (null)OUR JOB WILL BE TO ARRANGE THEM IN"
430 [153]" ALPHABETICAL ORDER."
435 [153]" (null)HEN THE COMPUTER ASKS YOU, TYPE IN"
440 [153]" THE LETTER BESIDE THE WORD THAT YOU"
445 [153]" THINK SHOULD GO FIRST, SECOND, AND"
450 [153]" SO ON..."
455 [141]820
460 [153]" LOAD ASCOR EXAMPLE, IN THE LIST
461 PRINT" A: YES
462 [153]" B: PAN
463 PRINT" C: ATE
464 [153]" D: SIP
465 PRINT" [217]OUR ANSWER WOULD BE":FORW=1TO500:NEXT
466 PRINT" NUMBER 1: ";:PRINT"C"
467 PRINT" NUMBER 2: ";:PRINT"B"
468 PRINT" NUMBER 3: ";:PRINT"D"
469 PRINT" NUMBER 4: ";:PRINT"A"
470 PRINT" [193]T THE END THE COMPUTER WILL TELL"
475 PRINT" YOU HOW WELL YOU DID."
480 GOSUB820
485 PRINT "[147] [201]F YOU MAKE A MISTAKE WHILE PUTTING"
490 PRINT " THE WORDS IN ALPHABETICAL ORDER, YOU"
495 PRINT " CAN DELETE IT OR TYPE IN A LETTER"
500 PRINT " FARTHER ON IN THE ALPHABET THAN ANY OF"
505 PRINT " THOSE SHOWN ON THE SCREEN. [212]HEN YOU"
510 PRINT " CAN START THE WHOLE LIST OVER AGAIN."
520 PRINT" [201]F YOU MAKE A MISTAKE, YOU
525 [153]" MAY HAVE THE WHOLE LIST REPEATED
530 PRINT" AFRESH BY TYPING IN ANY LETTER
535 [153]" BEYOND THOSE LISTED ON THE SCREEN.
540 GOSUB820
545 PRINT"[147] [196]O YOU WISH TO REPEAT THE INSTRUCTIONS?
550 [153]" (null)RESS Y WAIT TO REPEAT INSTRUCTIONS.
555 PRINT" [208]RESS N [146] TO START GAME.
560 [161]R$:[139]R$[179][177]"Y"[175]R$[179][177]"N"[167]560
565 [139]R$[178]"Y"[167]400
570 [153]"LOAD AND AWAY WE GO.........":[129] T[178]1[164]1500:[130]:[141]760:[141]760
700 [143] <YES>
705 SS[178]54272:[129]EE[178]SS[164]SS[170]28:[151]EE,0:[130]
710 [151]54296,15:[151]54277,42:[151]54278,250
715 [151]54276,23:[151]54273,23:[151]54272,191
720 [129]TN[178]1[164]100:[130]:[151]54276,32:[129]TN[178]1[164]200:[130]
725 [151]54296,0:[142]
730 [143] <NO>
735 SS[178]54272:[129]EE[178]SS[164]SS[170]28:[151]EE,0:[130]
740 [151]54296,15:[151]54277,18:[151]54278,242
745 [151]54276,33:[151]54273,4:[151]54272,48
750 [129]TN[178]1[164]300:[130]:[151]54276,32:[129]TN[178]1[164]400:[130]
755 [151]54296,0:[142]
760 [143] <BLIP>
765 SS[178]54272:[129]EE[178]SS[164]SS[170]28:[151]EE,0:[130]
770 [151]54296,7:[151]54277,42:[151]54278,250
775 [151]54276,23:[151]54273,23:[151]54272,191
780 [129]TN[178]1[164]30:[130]:[151]54276,32:[129]TN[178]1[164]50:[130]
785 [151]54296,0:[142]
790 [129]TN[178]1[164]500:[130]:[142]
791 [129]TN[178]1[164]1000:[130]:[142]
792 [129]TN[178]1[164]2000:[130]:[142]
793 [129]TN[178]1[164]3000:[130]:[142]
795 [129]TN[178]1[164]3000:[130]:[142]
800 [153]"LOAD";:[151]UT,UU%:[151]UY,1:[151]UX,1:[151]646,5
801 [153]" A TPUG EDUCATIONAL PROGRAM
802 PRINT" FOR C64 COMPUTERS
803 [153]" GRADES 2-3
804 GOSUB791
805 PRINT" [146]";
806 PRINT" [146]";
807 PRINT" ALPHA 1 A [146]";
808 PRINT" [146]";
809 PRINT" [146]"
810 GOSUB792:GOSUB760
811 PRINT" INSTRUCTIONS? Y/N
812 [161]R$:[139]R$[179][177]"Y"[175]R$[179][177]"N"[167]812
813 [139]R$[178]"Y"[167] [141] 400
814 [137]1000
820 [141]791:[141]760
823 [151]UN,0:[153][200](UD$,24);" (null)RESS (null)(null)ATNLENVALCLOSEPEEKATN(null) TO CONTINUE WAIT"
825 [161]UI$:[139]UI$[179][177]" "[167]825
830 [142]
835 [141]791:[141]760
837 [151]UN,0:[153][200](UD$,24);"SYS (null)RESS (null)(null)ATNLENVALCLOSEPEEKATN(null) TO CONTINUE WAITLIST"
840 [161]UI$:[139]UI$[179][177]" "[167]840
845 [142]
850 UP[178]UP[170]1:[153]"LOAD"[200](UT$[170]UP$,21);[201](UP$[170]UG$[170][196](UP),18)
855 [153]" --------------------------------------"
860 [139]UH[178]0[167][153][200](UD$,24);[200](UP$,6);"ATNNSWER, THEN PRESS (null)VAL(null)(null)(null)(null)WAIT"
865 UH[178]0:[153]"":[142]
875 [153][200](UD$,24);" ONE MOMENT PLEASE... ":[142]
900 US[178]1024:U1[178]209:U2[178]210:U3[178]211:U4[178]214:UC[178]204:UB[178]2048:UX[178]53280:UD[178]2064
902 UT[178]53272:UU%[178]21:UL%[178]23:UP%[178]2151:UN[178]198:UY[178]53281:UU[178]2199:UE[178]2087
904 UC$[178][199](155):UV[178]1214:UF[178]196:UV[178]2238
905 UD$[178]"":UP$[178]" "
906 [134]A$(60),B$(60),C$(60),B(60)
909 [142]
910 [141]900:[153]"LOAD":[153]"CLOSE"
920 [137] 800
1000 [139]UZ[178]1[167][158]UP%:[158]UP%:UZ[178]0
1005 [153]"LOAD"UC$;:[140]:[151]UY,6:[151]UX,6
1010 [153]"LOAD":[151]UT,UL%
1015 [153]" LEFT$ELLO!":[141]791:[141]760
1020 [153] " (null)HAT IS YOUR NAME? ";:UL[178]8:US$[178]"":[141]35:N$[178]UR$:[141]3000
1025 [141]791
1030 [153]"LOAD (null)HERE ARE 9 WORDS TO ALPHABETIZE":[141]790
1035 [153]" (null)LEASE WAIT 15 SECONDS WHILE
1040 PRINT" THE COMPUTER SETS UP YOUR GAME.
1045 [141]793
1500 Z[178]9
1505 [153]"LOAD"
1510 X[178]1
1515 [129]I[178]1[164]58
1520 [135]A$(I):[130]
1525 [140]
1530 A[178][181]([187](TI)[172]59)
1540 [139]A[179]1[167]1530
1550 [129]J[178]1[164]Z:[143] Z IS HOW MANY WORDS
1560 [139]B(J)[178]A[167]1530
1570 [130]
1580 B$(X)[178]A$(A):C$(X)[178]A$(A):B(X)[178]A
1590 X[178]X[170]1
1600 [139]X[179][178]Z[167]1530
1610 [153]""
1617 J$[178]"ABCDEFGHI"
1618 UH[178]1:UP[178]0:[153]""
1620 [129]I[178]1[164]Z
1630 [153][163]13);[202](J$,I,1);[163]17);B$(I):[130]
1640 B[178]1:C[178]1:[129]I[178]1[164]10[172]Z
1650 Q[178]B
1660 [139][195](C$(C))[179]B[167]B[178][195](C$(C))
1670 [139][195](C$(C[170]1))[179]B[167]B[178][195](C$(C[170]1))
1680 [139][198]([202](C$(C),1,B))[177][198]([202](C$(C[170]1),1,B))[167][141]2110
1690 B[178]Q
1700 [139]C[170]2[177]Z[167]C[178]0
1710 C[178]C[170]1:[130]
1720 [139]B[177]5[167]1740
1730 B[178]B[170]1:C[178]1
1750 [141]2130
1840 R[178]0:TT[178]0
1845 [153]""
1846 [129]I[178]1[164]Z:[153]"";:[130]I
1850 [129] I[178]1[164]Z
1855 [141]760
1860 US$[178]"ABCDEFGHIJKLMNOPQRSTUVWXYZ":UL[178]1:[153]" (null)UMBER";I;"CMD: ";:[141]35
1861 E(I)[178][198](UR$)[171]64
1865 [139]E(I)[178]26[167]E(I)[178]8:[137]1880
1870 [139]E(I)[177]Z[167][153]"LOAD":[137]1620
1880 D$(I)[178]B$(E(I))
1890 [139]D$(I)[178]C$(I)[167]R[178]R[170]1
1900 TT[178]TT[170]1
1910 [130]I
1920 J$[178]"ABCDEFGHICMDCMD
1924 REM YOUR LIST/MY LIST
1925 PRINT "[147]"
1930 PRINT TAB(13-((LEN(N$)+7)/2));N$;"'S LIST"
1940 PRINT:PRINT
1950 FORI=1TOZ
1960 PRINTTAB(9);D$(I);TAB(24);C$(I):NEXT
1965 D$(1)="":C$(1)="":PRINTTAB(1),D$(1),C$(1);:PRINT"[157]";
1970 FORW=1TOZ:PRINT"[145]";:NEXT:PRINT"[145][145][145][205]Y LIST"
1975 GOSUB835:
1980 PRINT"[147]"
1985 PRINT" [217]OU'VE GOTTEN";R;"RIGHT OUT OF";TT
1990 PRINT" [212]HAT'S ";INT((R/TT)*100);"% !"
1995 IFR=TTTHEN GOSUB700:GOSUB2210
2000 GOSUB835
2010 PRINT"[147][215]OULD YOU LIKE ANOTHER LIST ? ";:US$="YNZ":UL=1
2020 GOSUB35:L$=UR$:IFL$="N"THEN2170
2030 PRINT"[147] [208]LEASE WAIT 15 SECONDS FOR SETUP.":FORT=1TO2500:NEXT
2035 GOTO1500
2040 DATA"ANT","ABLE","AND","BUN","BIN","BAD","BELL"
2050 DATA"BALL","BAG","BIG","BOG","CAR","CAN","CAT"
2060 DATA"DID","DO","DONE","DROP","EAT","EAR","EGG","FAT","FAN","FALL"
2070 DATA"EATS","FALL","FELL","FLAT","FUN","GOT","GUN","GAVE"
2080 DATA"GATE","HOW","HOME","HAS","HAD","LEFT","MOON","MET","MESS"
2090 DATA"POT","PAN","PIN","RUN","RAT","SOON","SUN","SAT"
2100 DATA"TAP","TOP","TOO","WHO","WHEN","ONE","YES","YET","ZOO"
2110 X$=C$(C):C$(C)=C$(C+1):C$(C+1)=X$
2120 RETURN
2130 FORJ=1TO2:FORF=1TOZ-1
2140 IFASC(C$(F))=ASC(C$(F+1))THENGOSUB2310
2150 NEXTF:NEXTJ
2160 RETURN
2170 PRINT"[147] [201] HOPE THAT YOU ENJOYED YOURSELF.":GOSUB792
2175 PRINT" [199]OODBYE, ";N$;"!":GOSUB792:GOSUB760
2180 RESTORE:POKE631,13:POKE198,2
2182 PRINT"[147] [210]ETURNING TO THE [205][197][206][213]
2184 [147]"MENU",8
2186 [138]
2188 [128]
2200 [143]
2210 A[178][181]([187](TI)[172]7)
2220 [139]A[179]1[167]2210
2230 M$(1)[178]"VALXCELLENT SCORE!!"
2240 M$(2)[178]"(null)UPER SCORE"
2250 M$(3)[178]"(null)OU'RE DOING GREAT"
2260 M$(4)[178]"STR$ONE LIKE A GENIUS"
2270 M$(5)[178]"(null)REMENDOUS"
2280 M$(6)[178]"(null)NBELIEVABLE !!!"
2290 [153] ""
2295 [153] [163]20[171]([195](M$(A))[170]1[170][195](N$))[173]2);
2298 [153] M$(A);" ";N$
2300 [142]
2310 G$(F)[178]C$(F):G$(F[170]1)[178]C$(F[170]1)
2320 X[178]2
2330 [139][198]([202](C$(F),X,1))[179][198]([202](C$(F[170]1),X,1))[167]2400
2340 [139][198]([202](C$(F[170]1),X,1))[179][198]([202](C$(F),X,1))[167]2390
2350 X[178]X[170]1
2360 [139]X[177][195](C$(F))[167]2400
2370 [139]X[177][195](C$(F[170]1))[167]2400
2380 [137]2330
2390 C$(F[170]1)[178]G$(F):C$(F)[178]G$(F[170]1)
2400 [142]
3000 N$[178][199](([198]([200](N$,1))[175]127)[170]128)[170][202](N$,2):[142]
3100 [143] WHC 90:06:26